<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
//String path = request.getContextPath();
//String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String errorCode = request.getParameter("errorCode");

Integer code= 0;
	if( errorCode == null || "".equals(errorCode) )
	;
	else
		code = Integer.parseInt(errorCode);
		
String errorString =new String();
switch (code){
	case 1:
		errorString="错误代码：" + code.toString()+ "当前用户无权进行此操作！";
		break;
	case 500:
		errorString="错误代码：" + code.toString()+ ",系统运行异常！";
		break;
	case 404:
		errorString="错误代码：" + code.toString() + ",你访问的页面不存在！";
		break;
	default:
		errorString="系统运行异常！";
		break;
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 <%--    <base href="<%=basePath%>"> --%>
    
    <title>系统异常</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <p>
    <span style="font-size: 36px;"><strong><br/></strong></span>
</p>
<p>
    <span style="font-size: 36px; color: rgb(89, 89, 89);"><strong><br/></strong></span>
</p>
<p style="text-align: left;">
    <span style="font-size: 36px; color: rgb(89, 89, 89);"><strong><span style="color: rgb(89, 89, 89); font-size: 36px; font-family: 黑体,SimHei;">&nbsp; 系统错误</span></strong></span>
</p>
<hr/>
<p style="text-align: left;"></p>
<p style="text-align: left;">
    <br/>
</p>
<p style="text-align: center;">
    <span style="color: rgb(127, 127, 127);"><strong><span style="font-size: 24px;">错误信息：</span></strong></span><strong><span style="font-size: 24px; color: rgb(255, 0, 0);"><%=errorString%></span></strong>
</p>
<p>
    <br/>
</p>
<p>
    <br/>
</p>
<p>
    <br/>
</p>
<p>
    <br/>
</p>
<p style="text-align: center;">
    <span style="font-size: 20px; color: rgb(127, 127, 127);">请联系管理员：XXXXX</span>
</p>
<p style="text-align: center;">
    <span style="font-size: 20px; color: rgb(127, 127, 127);">电话：12321341234<br/></span>
</p>
<p>
    <br/>
</p>
  </body>
</html>
